<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<%@ page session="true"%>
<html>
<head>
<title>Home</title>
</head>

<body>
	<form:form action="/service" method="POST" modelAttribute="formData"
		commandName="formData">

		<table>
			<tr>
				<td>Select client(s):</td>
				<td><form:select id="clients" multiple="true" path="clients"
						size="10">
						<!--<form:option value="ALL" label="--- ALL ---" />-->
						<form:options items="${clientsList}" />
					</form:select></td>
				<td><form:errors path="clients" /></td>
			</tr>
			<tr>
				<td>Select page(s):</td>
				<td><form:select id="pages" multiple="true" path="pages"
						size="10">
						<!--<form:option value="ALL" label="--- ALL ---" />-->
						<form:options items="${pagesList}" />
					</form:select></td>
				<td><form:errors path="pages" /></td>
			</tr>

			<tr>
				<td>Select log(s):</td>
				<td><form:select id="logs" multiple="true" path="logs">
						<!--<form:option value="ALL" label="--- ALL ---" />-->
						<form:options items="${logsList}" />
					</form:select></td>
				<td><form:errors path="logs" /></td>
			</tr>

			<tr>
				<td>Select report type</td>
				<td><form:select id="logs" path="report" size="1">
						<!--<form:option value="ALL" label="--- ALL ---" />-->
						<form:options items="${reportTypesList}" />
					</form:select></td>
				<td><form:errors path="report" /></td>



			</tr>

			<tr>
				<td><input type="submit" name="pdfReport" value="PDF Report" /></td>
				<td />
				<td />
			</tr>

			<tr>
				<td><input type="submit" name="xlsReport" value="XLS Report" /></td>
				<td />
				<td />
			</tr>

			<tr>
				<td><input type="submit" name="xlsxReport" value="XLSX Report" /></td>
				<td />
				<td />
			</tr>
		</table>

	</form:form>

</body>
</html>
